import request from "@/utils/request"

export const checkUpdate = (version: string) => {
    return request.get("/system/version/check", {
        params: {
            'version': version
        }
    })
}

export const uploadVersion = (versionFile: string) => {
    return request.get("/system/version/upload", {
        params: {
            'versionFile': versionFile
        }
    })
}

export const getLatestVersion = () => {
    return request.get("/system/version/latest");
}